//
//  StaticSettings.h
//  HeWeiZhiNeng
//
//  Created by chengzhang Yan on 2017/11/30.
//  Copyright © 2017年 YanCeyMichael.github.io. All rights reserved.
//

#ifndef StaticSettings_h
#define StaticSettings_h

#ifdef DEBUG
#define debug_NSLog(format, ...) NSLog(format, ## __VA_ARGS__)
#else
#define debug_NSLog(format, ...)
#endif



#ifdef DEBUG // 开发环境
#define kServiceHost @"http://106.14.216.209:8088/"
#else // 生产环境
#define kServiceHost @"http://api.airwheel.cn/"
#endif

#define kToken [StaticData getToken]

#define kScreenH  [[UIScreen mainScreen] bounds].size.height
#define kScreenW  [[UIScreen mainScreen] bounds].size.width



#define RGBACOLOR(r, g, b, a)   [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:(a)]
#define RGBCOLOR(r, g, b)       [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:1]
#define UIColorFromRGB(rgbValue) [UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 green:((float)((rgbValue & 0xFF00) >> 8))/255.0 blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0]
#define Common_Font(s)          [UIFont fontWithName:@"PingFang-SC-Medium" size:s]

#define white_         RGBCOLOR(255,255,255)
#define blue_one       RGBCOLOR(22,126,241)
#define gray_one       RGBCOLOR(44,48,57)

#define kApi @"api/v1/"
#define kAppId @"BA4E67519DF644D1B004D3CEB257FF58"
#define kKey @"M/vkPOWXgBa7GnRd73t7j+jsKfbZtb+f"
#define kVersion @"1.0"
#define kChannel @"iOS"

/******** API接口 ********/
#define kRegistUrl             @"accounts/userRegister"                                 //注册账号
#define kSendMSUrl             @"accounts/sendVerificationCode"                         //发送短信
#define kCarOperationUrl       @"hardware/OperationTerminal"                            //硬件操作



#endif /* StaticSettings_h */
